<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj={
            num:'123',
            name:'张飞',
            address:'中国大路'
        }
        for(k in obj){
           // console.log(k)打印属性名
            console.log(obj[k])//依次打印属性值
            //console.log(obj.name)打印指定

        }
    </script>
</body>
</html>